package com.ruoyi.jxxwx.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 场所信息业务对象 jxx_place
 *
 * @author ruoyi
 * @date 2025-04-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class JxxPlaceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long placeId;

    /**
     * 产所名称
     */
    @NotBlank(message = "产所名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeName;

    /**
     * 产所地址
     */
    @NotBlank(message = "产所地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeAddr;

    /**
     * 产所类型
     */
    @NotBlank(message = "产所类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeType;

    /**
     * 所在辖区
     */
    @NotBlank(message = "所在辖区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeArea;

    /**
     * 场所状态(0.正常,1预警,2限时整改,3已整改4.未改动)
     */
    @NotNull(message = "场所状态(0.正常,1预警,2限时整改,3已整改4.未改动)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long placeStatus;

    /**
     * 整改时间(限时整改使用)
     */
    @NotNull(message = "整改时间(限时整改使用)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date correctionTime;


}
